package com.pactera.mavenweb.service;

import java.util.List;

import com.pactera.mavenweb.entity.UserGroup;

/**
 * UserGroupService
 * @author SteveXIE
 *
 */
public interface UserGroupService {
	/**
	 * 批量保存
	 * @param UserGroup
	 * @return
	 */
	int saveUserGroups(List<UserGroup> userGroups);
	
	public UserGroup getUserGroup(String id);
	
	public List<UserGroup> getAllUserGroup();
	
	public List<UserGroup> getUsersFromGroupId(int groupId);
	
	public void addUserGroup(UserGroup userGroup);
	
	public boolean delUserGroup(int userId);
	
	public void updateUserGroup(UserGroup userGroup);
}